package com.glory.dgcpcpda.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class GoldenSampleTestDataEntity {
    private ArrayList<DataEntity> Datas;
    private ArrayList<DataEntity> Data;
    private ArrayList<GoldenSampleCfgEntity> GoldenSampleCfgs;

    public ArrayList<DataEntity> getData() {
        if (Data == null) {
            return new ArrayList<>();
        }
        return Data;
    }

    public void setData(ArrayList<DataEntity> data) {
        Data = data;
    }

    public ArrayList<DataEntity> getDatas() {
        if (Datas == null) {
            return new ArrayList<>();
        }
        return Datas;
    }

    public void setDatas(ArrayList<DataEntity> datas) {
        Datas = datas;
    }

    public ArrayList<GoldenSampleCfgEntity> getGoldenSampleCfgs() {
        if (GoldenSampleCfgs == null) {
            return new ArrayList<>();
        }
        return GoldenSampleCfgs;
    }

    public void setGoldenSampleCfgs(ArrayList<GoldenSampleCfgEntity> goldenSampleCfgs) {
        GoldenSampleCfgs = goldenSampleCfgs;
    }

    public class DataEntity {
        private String SERIAL_NO;
        private String HBIN_NO;
        private String SBIN_NO;
        private String TEST_FLG;
        private String SampleNo;
        private String DataStatus;
        private ReturnInfoEntity ResultInfo;

        private String TesterRupt;

        private String TestRecId;


        public String getTesterRupt() {
            return TesterRupt == null ? "" : TesterRupt;
        }

        public void setTesterRupt(String testerRupt) {
            TesterRupt = testerRupt;
        }

        public String getTestRecId() {
            return TestRecId == null ? "" : TestRecId;
        }

        public void setTestRecId(String testRecId) {
            TestRecId = testRecId;
        }

        public String getSERIAL_NO() {
            return SERIAL_NO == null ? "" : SERIAL_NO;
        }

        public void setSERIAL_NO(String SERIAL_NO) {
            this.SERIAL_NO = SERIAL_NO;
        }

        public String getHBIN_NO() {
            return HBIN_NO == null ? "" : HBIN_NO;
        }

        public void setHBIN_NO(String HBIN_NO) {
            this.HBIN_NO = HBIN_NO;
        }

        public String getSBIN_NO() {
            return SBIN_NO == null ? "" : SBIN_NO;
        }

        public void setSBIN_NO(String SBIN_NO) {
            this.SBIN_NO = SBIN_NO;
        }

        public String getTEST_FLG() {
            return TEST_FLG == null ? "" : TEST_FLG;
        }

        public void setTEST_FLG(String TEST_FLG) {
            this.TEST_FLG = TEST_FLG;
        }

        public String getSampleNo() {
            return SampleNo == null ? "" : SampleNo;
        }

        public void setSampleNo(String sampleNo) {
            SampleNo = sampleNo;
        }

        public String getDataStatus() {
            return DataStatus == null ? "" : DataStatus;
        }

        public void setDataStatus(String dataStatus) {
            DataStatus = dataStatus;
        }

        public ReturnInfoEntity getResultInfo() {
            return ResultInfo == null ? new ReturnInfoEntity() : ResultInfo;
        }

        public void setResultInfo(ReturnInfoEntity resultInfo) {
            ResultInfo = resultInfo;
        }
    }

    public class GoldenSampleCfgEntity {
        private String SampleNO;
        private String TestType;
        private String BinNO;
        private String BinCount;
        private String BinResult;
        private String ResultCount;
        private ArrayList<ItemEntity> Items;

        public String getSampleNO() {
            return SampleNO == null ? "" : SampleNO;
        }

        public void setSampleNO(String sampleNO) {
            SampleNO = sampleNO;
        }

        public String getTestType() {
            return TestType == null ? "" : TestType;
        }

        public void setTestType(String testType) {
            TestType = testType;
        }

        public String getBinNO() {
            return BinNO == null ? "" : BinNO;
        }

        public void setBinNO(String binNO) {
            BinNO = binNO;
        }

        public String getBinCount() {
            return BinCount == null ? "" : BinCount;
        }

        public void setBinCount(String binCount) {
            BinCount = binCount;
        }

        public String getBinResult() {
            return BinResult == null ? "" : BinResult;
        }

        public void setBinResult(String binResult) {
            BinResult = binResult;
        }

        public String getResultCount() {
            return ResultCount == null ? "" : ResultCount;
        }

        public void setResultCount(String resultCount) {
            ResultCount = resultCount;
        }

        public ArrayList<ItemEntity> getItems() {
            if (Items == null) {
                return new ArrayList<>();
            }
            return Items;
        }

        public void setItems(ArrayList<ItemEntity> items) {
            Items = items;
        }

        private class ItemEntity {
            private String TestName;
            private String StandardValue;
            private String DiffValue;
            private String TestConut;

            public String getTestName() {
                return TestName == null ? "" : TestName;
            }

            public void setTestName(String testName) {
                TestName = testName;
            }

            public String getStandardValue() {
                return StandardValue == null ? "" : StandardValue;
            }

            public void setStandardValue(String standardValue) {
                StandardValue = standardValue;
            }

            public String getDiffValue() {
                return DiffValue == null ? "" : DiffValue;
            }

            public void setDiffValue(String diffValue) {
                DiffValue = diffValue;
            }

            public String getTestConut() {
                return TestConut == null ? "" : TestConut;
            }

            public void setTestConut(String testConut) {
                TestConut = testConut;
            }
        }
    }


    public static class ReturnInfoEntity implements Serializable{

        private String ResultCode;
        private String ResultInfo;
        private BinReturnInfoEntity BinNoInfo;
        private BinReturnInfoEntity BinResultInfo;
        private BinReturnInfoEntity BinItemInfos;

        public String getResultCode() {
            return ResultCode == null ? "" : ResultCode;
        }

        public void setResultCode(String resultCode) {
            ResultCode = resultCode;
        }

        public String getResultInfo() {
            return ResultInfo == null ? "" : ResultInfo;
        }

        public void setResultInfo(String resultInfo) {
            ResultInfo = resultInfo;
        }

        public BinReturnInfoEntity getBinNoInfo() {
            return BinNoInfo == null ? new BinReturnInfoEntity() : BinNoInfo;
        }

        public void setBinNoInfo(BinReturnInfoEntity binNoInfo) {
            BinNoInfo = binNoInfo;
        }

        public BinReturnInfoEntity getBinResultInfo() {
            return BinResultInfo == null ? new BinReturnInfoEntity(): BinResultInfo;
        }

        public void setBinResultInfo(BinReturnInfoEntity binResultInfo) {
            BinResultInfo = binResultInfo;
        }

        public BinReturnInfoEntity getBinItemInfos() {
            return BinItemInfos == null ? new BinReturnInfoEntity() : BinItemInfos;
        }

        public void setBinItemInfos(BinReturnInfoEntity binItemInfos) {
            BinItemInfos = binItemInfos;
        }
    }

    public static class BinReturnInfoEntity implements Serializable{

        private String ResultCode;
        private String ResultInfo;
        private List<BinReturnInfoEntity> ItemInfos;

        public String getResultCode() {
            return ResultCode == null ? "" : ResultCode;
        }

        public void setResultCode(String resultCode) {
            ResultCode = resultCode;
        }

        public String getResultInfo() {
            return ResultInfo == null ? "" : ResultInfo;
        }

        public void setResultInfo(String resultInfo) {
            ResultInfo = resultInfo;
        }

        public List<BinReturnInfoEntity> getItemInfos() {
            return ItemInfos == null ? new ArrayList<>() : ItemInfos;
        }

        public void setItemInfos(List<BinReturnInfoEntity> itemInfos) {
            ItemInfos = itemInfos;
        }
    }
}
